/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class FoodProbe {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010050055';
    }

    get categoryName() {
        return '\u98df\u7269\u63a2\u9488';
    }

    getAlarmStatus(params) {
        return command({
            method: 'getAlarmStatus',
            methodId: 'pDrhg1S5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentTemperature(params) {
        return command({
            method: 'getCurrentTemperature',
            methodId: 'p1vZQTql',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getStatus(params) {
        return command({
            method: 'getStatus',
            methodId: 'pUPQLHFn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetHighTemp(params) {
        return command({
            method: 'getTargetHighTemp',
            methodId: 'pZgRrvKM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetLowTemp(params) {
        return command({
            method: 'getTargetLowTemp',
            methodId: 'pGoxpNzK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetHighTemp(params) {
        return command({
            method: 'setTargetHighTemp',
            methodId: 'peH3by8E',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetLowTemp(params) {
        return command({
            method: 'setTargetLowTemp',
            methodId: 'ppAX3iH9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default FoodProbe;
